package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;


/**
 * 药品入库
 * 数据库通用操作实体类（普通增删改查）
 *
 * @author
 * @email
 * @date 2021-03-23 08:51:28
 */
@TableName("yaopinruku")
public class YaopinrukuEntity<T> implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 主键id
     */
    @TableId
    private Long id;
    /**
     * 入库单号
     */

    private String rukudanhao;
    /**
     * 药品名称
     */

    private String yaopinmingcheng;
    /**
     * 药品类别
     */

    private String yaopinleibie;
    /**
     * 规格
     */

    private String guige;
    /**
     * 厂家
     */

    private String changjia;
    /**
     * 数量
     */

    private Integer shuliang;
    /**
     * 备注
     */

    private String beizhu;
    /**
     * 入库时间
     */

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat
    private Date rukushijian;
    /**
     * 员工工号
     */

    private String yuangonggonghao;
    /**
     * 员工姓名
     */

    private String yuangongxingming;
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat
    private Date addtime;

    public YaopinrukuEntity() {

    }


    public YaopinrukuEntity(T t) {
        try {
            BeanUtils.copyProperties(this, t);
        } catch (IllegalAccessException | InvocationTargetException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取：入库单号
     */
    public String getRukudanhao() {
        return rukudanhao;
    }

    /**
     * 设置：入库单号
     */
    public void setRukudanhao(String rukudanhao) {
        this.rukudanhao = rukudanhao;
    }

    /**
     * 获取：药品名称
     */
    public String getYaopinmingcheng() {
        return yaopinmingcheng;
    }

    /**
     * 设置：药品名称
     */
    public void setYaopinmingcheng(String yaopinmingcheng) {
        this.yaopinmingcheng = yaopinmingcheng;
    }

    /**
     * 获取：药品类别
     */
    public String getYaopinleibie() {
        return yaopinleibie;
    }

    /**
     * 设置：药品类别
     */
    public void setYaopinleibie(String yaopinleibie) {
        this.yaopinleibie = yaopinleibie;
    }

    /**
     * 获取：规格
     */
    public String getGuige() {
        return guige;
    }

    /**
     * 设置：规格
     */
    public void setGuige(String guige) {
        this.guige = guige;
    }

    /**
     * 获取：厂家
     */
    public String getChangjia() {
        return changjia;
    }

    /**
     * 设置：厂家
     */
    public void setChangjia(String changjia) {
        this.changjia = changjia;
    }

    /**
     * 获取：数量
     */
    public Integer getShuliang() {
        return shuliang;
    }

    /**
     * 设置：数量
     */
    public void setShuliang(Integer shuliang) {
        this.shuliang = shuliang;
    }

    /**
     * 获取：备注
     */
    public String getBeizhu() {
        return beizhu;
    }

    /**
     * 设置：备注
     */
    public void setBeizhu(String beizhu) {
        this.beizhu = beizhu;
    }

    /**
     * 获取：入库时间
     */
    public Date getRukushijian() {
        return rukushijian;
    }

    /**
     * 设置：入库时间
     */
    public void setRukushijian(Date rukushijian) {
        this.rukushijian = rukushijian;
    }

    /**
     * 获取：员工工号
     */
    public String getYuangonggonghao() {
        return yuangonggonghao;
    }

    /**
     * 设置：员工工号
     */
    public void setYuangonggonghao(String yuangonggonghao) {
        this.yuangonggonghao = yuangonggonghao;
    }

    /**
     * 获取：员工姓名
     */
    public String getYuangongxingming() {
        return yuangongxingming;
    }

    /**
     * 设置：员工姓名
     */
    public void setYuangongxingming(String yuangongxingming) {
        this.yuangongxingming = yuangongxingming;
    }

}
